<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
  <div id="app">
    <ul>
      <li v-for="(item, index) in list" :key="item">
        {{list[index]}}
      </li>
    </ul>
    <button @click="fn">走一走</button>
  </div>
    <script>
      new Vue({
        el:'#app',
        data:{
          list: [
              '美女',
              '要桑',
              '帅帅哒'
      ]
        },
        methods: {
          fn(){
            //this.list.splice(0,2) 返回删除 的 2个数据
            // this.list.concat 剩下最后 1个数据 拼接 删除的2个 
            // this.list = this.list.concat(this.list.splice(0,2))
            this.list.push(this.list.shift());
          }
        },
      })
    </script>
</body>
</html>